package com.hujun.modules.dto;

import com.hujun.utils.tree.TreeDTO;

import java.io.Serializable;
import java.util.List;

public class BookDTO extends TreeDTO<BookDTO, String> implements Serializable {

    private String id;

    private String parentId;

    private String name;

    private List<BookDTO> children;

    public BookDTO() {
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String getParentId() {
        return parentId;
    }

    @Override
    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public List<BookDTO> getChildren() {
        return children;
    }

    @Override
    public void setChildren(List<BookDTO> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "BookDTO{" +
                "id='" + id + '\'' +
                ", parentId='" + parentId + '\'' +
                ", name='" + name + '\'' +
                ", children=" + children +
                '}';
    }
}
